package com.ahcloud.edas.gatewaylog.server.kafka;

import com.ahcloud.edas.common.kafka.KafkaClientInstance;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;

/**
 * @program: edas
 * @description:
 * @author: YuKai Fan
 * @create: 2024/6/7 10:01
 **/
public class KafkaBootstrap implements ApplicationListener<ContextRefreshedEvent> {
    @Override
    public void onApplicationEvent(ContextRefreshedEvent event) {
        KafkaClientInstance.getInstance().doConsumerStart();
    }
}
